const { DataTypes } = require('sequelize')

const seq = require('../db/seq')


const Leave = seq.define('leave', {

    id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
    empId: DataTypes.INTEGER,
    empName: DataTypes.STRING,
    remark: DataTypes.STRING,
    initiationTime: DataTypes.DATE,
    dayNum: DataTypes.INTEGER,
    status: DataTypes.INTEGER,
    reviewId: DataTypes.INTEGER,
    reviewName: DataTypes.STRING,
}, {
    tableName: 'leave'
})

module.exports = Leave